/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 说明：
 * Entity Name 其他原因出库单
 * @Author：黄盛强
 * @Date：2012-04-11
 */
@Entity
@Table(name="ruipeng_tb_TOutBill")
public class TOutBill  implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String BillID;//出库编号 CHAR(15)
	
	private String Reason;//出库原因 VARCHAR(1024)
	
	private byte ReasonType;//原因类型  1为商品报损(此时使用人为报损人)	2为员工领用（此时使用人为使用员工）3为其它原因出库（此时使用人字段未使用）
	
	private String AUser;//使用人CHAR(15)
	
	private String Operator;// CHAR(15)操作人
	
	private Date HappenTime;//操作时间DATE
	
	private byte Status;//状态1为正在申请  2为已审核   3为已完成（出库或者入库）
	
	private String Checker;//审核人CHAR(15)
	
	private Date CheckTime;//审核时间DATE
	
	private Date endTime;//结束时间  查询条件 不进数据库
	
	private String storeid;//仓库编号

	@Id
	@Column(name = "BillID",length=15)
	public String getBillID() {
		return BillID;
	}

	public void setBillID(String billID) {
		BillID = billID;
	}
	
	@Column(name = "Reason",length=1024)
	public String getReason() {
		return Reason;
	}

	public void setReason(String reason) {
		Reason = reason;
	}
	
	@Column(name = "ReasonType")
	public byte getReasonType() {
		return ReasonType;
	}

	public void setReasonType(byte reasonType) {
		ReasonType = reasonType;
	}
	
	@Column(name = "AUser",length=1024)
	public String getAUser() {
		return AUser;
	}

	public void setAUser(String aUser) {
		AUser = aUser;
	}
	
	@Column(name = "Operator",length=1024)
	public String getOperator() {
		return Operator;
	}

	public void setOperator(String operator) {
		Operator = operator;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	
	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}
	
	@Column(name = "Checker",length=1024)
	public String getChecker() {
		return Checker;
	}

	public void setChecker(String checker) {
		Checker = checker;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CheckTime", nullable = false, length = 19)
	public Date getCheckTime() {
		return CheckTime;
	}

	public void setCheckTime(Date checkTime) {
		CheckTime = checkTime;
	}
	@Transient
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Transient
	public String getStoreid() {
		return storeid;
	}

	public void setStoreid(String storeid) {
		this.storeid = storeid;
	}

}
